package com.nuoniu.sibanyun.entity.msg;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 消息管理
 * </p>
 *
 * @author 小啊刚
 * @since 2022-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_msg")
@ApiModel(value="SysMsg对象", description="消息管理")
public class SysMsg extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "消息标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "消息内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "消息类型0:系统1客户2:采购3:销售4:库存5:生产6:财务")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "单据id")
    @TableField("voucher_id")
    private Long voucherId;

    @ApiModelProperty(value = "页面地址")
    @TableField("menu_href")
    private String menuHref;

    @ApiModelProperty(value = "消息状态0:未读 1:已读")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "接收用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "接收用户名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;


}
